package com.vkmessenger.net.json;

/**
 * Created by IntelliJ IDEA.
 * User: Evgeniy Krasko
 * Date: 21.06.12
 * Time: 16:41
 */
public class FriendsResponse {

    public static class FriendResponse {
        public String uid;
        public String first_name;
        public String last_name;
        public String photo;
        public String online;

        public String getTitle(){
            return first_name + " " + last_name;
        }

        public char getFirst(){
            if(first_name != null && first_name.length() != 0) return first_name.charAt(0);
            if(last_name != null && last_name.length() != 0) return last_name.charAt(0);
            return '?';
        }
    }

    public FriendResponse[] response;

}


